<tagLib name="html" />
<include file="../Public/header" />
	<div id="category">
		<ul>
			<li>
				<php>echo !isset($GLOBALS['category']) ? "所有" : '<a href="__URL__/show/site/'.$GLOBALS['site'].'" title="所有栏目">所有</a>';</php><a href="http://localhost/wordpress" title="所有栏目" ><img src="../Public/images/rss.gif"></a>
			</li>
			<iterate name="categoryList" id="vo">
				<li>
					<if condition="$vo['categoryhash'] eq $GLOBALS['category']">{$vo.title}<else /><a href="__URL__/show/category/{$vo.categoryhash}" title="{$vo.title}">{$vo.title}</a></if><a href="" title="" ><img src="../Public/images/rss.gif"></a>
				</li>
			</iterate>
		</ul>
	</div>
<div id="viewaction">按 [ <a href="__APP__/News/show/view/list">列表</a> | <a href="__APP__/News/show/view/thumb">图文 </a>| <a href="__APP__/News/show/view/blog">博客 |  <a href="__APP__/News/show/view/image">图片</a> ]  方式查看</div>
	<div class="clear"></div>
		<div class="post" id="post-3">
				<h3><a href="__URL__/view/news/{$news.newshash}"  title="{$news.title}">{$news.title}<if condition="$news['image'] neq 0"> [图]</if></a></h3>

				<div class="info">[ <php>echo date("m/d h:s", $news['date']);</php>| <a href='__URL__/show/site/{$news.sitehash}'>{$news.site}</a> | <a href="__URL__/show/category/{$news.categoryhash}">{$news.category}</a> | <a href="__URL__/show/site/{$news.sitehash}/author/{$news.author}">{$news.author}</a> 查看{$news.view}次| 评论<span class="comment_count">{$news.comment}</span>次]</div>

				<div class="entry">
						<php>
						$mediaURL = C("MEDIA_URL");
						$mediaURL  = str_replace("$2","0",$mediaURL);
						if($_GET["original"]){
							$news['original'] = preg_replace("/\\\\\[__MEDIA__\\\\\|(\\\\d+)\\\\]/",$mediaURL,$news["original"]);
							echo $news['original'];
						}
						else{
							$news['brief'] = preg_replace("/\\\\\[__MEDIA__\\\\\|(\\\\d+)\\\\]/",$mediaURL,$news["brief"]);
							$news['brief'] = str_replace("[","<",$news['brief']);
							$news['brief'] = str_replace("]",">",$news['brief']);
							echo $news['brief'];
						}
						</php>

				</div>
				<div class="clear"></div>
				<div class="url">原始地址:<a href="{$news.url}" target="_blank">{$news.url}</a></div>
				<div class="clear"></div>
				
				<div class="attachment">
					<h4>附件</h4>
					<ul>
					<if condition="count($mediaList) gt 0">
						<iterate name="mediaList" id="vo">
						<li><a href="{:mediaFormat($vo['mediahash'],false,true)}" title="下载此附件">{$vo.name}</a> <span>{$vo.title}</span> <span>下载 {$vo.download} 次</span></li>
						</iterate>
					<else />
						<li>暂无附件</li>
						</if>
					</ul>
				</div>
				
				<div class="clear"></div>
				<div class="tag">标签: {$news.tag}</div>
				<div class="action"><a href="__URL__/show/category/{$news.categoryhash}">返回栏目</a> |
				<if condition="$_GET['original']">
				<a href="__URL__/view/news/{$news.newshash}">无格式全文</a> |原格式全文 |
				<else />
				无格式全文 |<a href="__URL__/view/news/{$news.newshash}/original/true">原格式全文</a> |
				</if>
				<a href="{$news.url}" target="_blank">原始地址</a></div>
				<div class="clear"></div>
			</div>
			<div id="newsNav">
				<div class="prenews">上一篇: <if condition="$preNews"><a href="__APP__/News/view/news/{$preNews.newshash}">{$preNews.title}</a><else />暂无</if></div>
				<div class="nextnews">下一篇:<if condition="$nextNews"><a href="__APP__/News/view/news/{$nextNews.newshash}">{$nextNews.title}</a><else />暂无</if></div>
			</div>
			<div class="clear"></div>
			<div id="comment">
				<div id="comment_head">
					<span class="comment_show_hiden"> [<a href="#" onclick="cmt.show();return false;">展开/隐藏</a>]</span>
					<span class="comment_head_title">网友热论 <a name="comment" id="comment_top"></a><span class="comment_head_stat">共有 <span class="comment_count">{$news.comment}</span> 条评论</span></span>
				</div>
				<div id="comment_post_tpl" style="display:none;">
					<div class="comment_post" id="comment_{commentid}">
						<div class="comment_left">
							<div class="comment_number">{number}</div>
						</div>
						<div class="comment_right">
							<div class="comment_info">[ {author} | {date}]</div>
							<div class="comment_content">
							{content}
							</div>
							<div class="comment_action">[ <a href="#" title="回复这条评论" onclick="cmt.reply({number2});return false;">回复</a> | <a href="#" title="滚动至评论顶部" onclick="cmt.top();return false;">顶部</a>]</div>
						</div>
						<div class="clear"></div>
					</div>
				</div>

				<div id="comment_post_area">
					<div id="comment_posts">
						<!-- 评论列表 -->
					</div>
					<div id="pagenav" class="comment_pagenav">
				</div>

				</div>
				<div class="clear"></div>
				<div class="msg_wrap"><div class="notice" id="comment_message" style="display:none;"></div></div>
				<div id="comment_form">
					<div class="comment_formarea">
					<form method="POST" action="__APP__/Comment/save">
						<div><label>您的名字</label><input type="text" value="匿名网友" name="name" id="cmt_form_author"/></div>
						<div><label>您的评论</label><textarea name="content" id="cmt_form_content"></textarea></div>
						<div><label>验证字符</label><input type="text" value="" name="verify" id="cmt_form_verify"/><img src="__APP__/Public/verify" alt="验证码" id="img_verify"/><a href="javascript:fleshVerify()">刷新验证码</a></div>
						<div class="input_submit_div"><input type="button" value="提 交" name="submit" id="cmt_form_submit" onclick="cmt.add();return false;"/></div>
					</form>
					</div>
					<div class="clear"></div>
					<div class="comment_formtips">
					<h4>小贴士</h4>
						<ol>
							<li>类似“顶”、“沙发”之类没有营养的文字，对勤劳贡献的楼主来说是令人沮丧的反馈信息。</li>
							<li>提问之前请再仔细看一遍楼主的说明，或许是您遗漏了。</li>
							<li>勿催片。请相信驴友们对分享是富有激情的，如果确有更新版本，您一定能搜索到。</li>
							<li>请勿到处挖坑绊人、招贴广告。既占空间让人厌烦，又没人会搭理，于人于己都无利。</li>
							<li>如果您发现自己的评论不见了，请参考以上4条。</li>
						</ol>
					</div>
				
				</div>
			</div>
	</div>

<include file="../Public/sidebar" />
</div><!-- end content -->
<script type="text/javascript">
<!--
	var cmt = new LookerComment('{$news.newshash}',{$news.comment});
//-->
</script>
</div>
<include file="../Public/footer" />